﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DoAn.DAO;
using DoAn.DTO;
using System.Data;

namespace DoAn.BUS
{
    public class SanDauGiaBUS
    {
        public static void taoSanDauGia(SanDauGiaDTO san)
        {
            SanDauGiaDAO.taoSanDauGia(san);
        }
        public static int maSanDauGia()
        {
            return SanDauGiaDAO.maSanDauGia();
        }
        public static DataTable loadtopnew()
        {
            return SanDauGiaDAO.loadtopnew();
        }
        public static DataTable loadtopSan()
        {
            return SanDauGiaDAO.loadtopsan();
        }
        public static DataTable laydssantheomaDM(List<int> t)
        {
            return SanDauGiaDAO.laydstheoDMcha(t);
        }
        public static DataTable laydssanphamtheomaDMcon(int ma)
        {
            return SanDauGiaDAO.laydstheoDMcon(ma);
        }
        public static DataTable laydstheoten(string ten)
        {
            return SanDauGiaDAO.laydstheoten(ten);
        }
        public static DataTable laysptheoma(int ma)
        {
            return SanDauGiaDAO.laysptheoma(ma);
        }
        public static void update_giahientai(int ma, float tien)
        {
            SanDauGiaDAO.update_giahientai(ma, tien);
        }
        public static void update_muangay(int ma,float mua)
        {
            SanDauGiaDAO.update_muangay(ma,mua);
        }
        public static DataTable timkiemkhung(string sql)
        {
            return SanDauGiaDAO.timkiemkhung(sql);
        }


    }
}